<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<%
	String path = request.getContextPath();
	// 获得本项目的地址(例如: http://localhost:8080/MyApp/)赋值给basePath变量 
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	// 将 "项目路径basePath" 放入pageContext中，待以后用EL表达式读出。 
	pageContext.setAttribute("basePath", basePath);
	//out.write(basePath);
%>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>所有教师信息显示页面</title>
<meta name="description"
	content="Source code generated using layoutit.com">
<meta name="author" content="LayoutIt!">

<link href="<%=basePath%>bootstrap/css/bootstrap.min.css"
	rel="stylesheet">
<link href="<%=basePath%>bootstrap/css/style.css" rel="stylesheet">
</head>
<body>


	<div>

		<!--  <form class="form-horizontal" role="form"
			action="<%=basePath%>ModifyTeaInfo" method="post">

		<input type="hidden" id="opt" name="opt" value="0"> <input
			type="hidden" id="uid" name="uid" value="${eachuser.teaid}">-->
		<h5>我的个人信息</h5>
		<table class="table table-bordered table-hover"
			style="text-align: center;">
			<tbody>
				<tr class="success">

					<td>用户名</td>
					<td>性别</td>
					<td>年龄</td>
					<td>电话</td>
					<td>地址</td>
					<td>身份</td>
					<td>修改</td>

				</tr>

				<c:forEach items="${sessionScope.lstT}" var="eachuser"
					varStatus="statu">
					<tr>

						<td>${eachuser.teaname}</td>
						<td>${eachuser.teasex}</td>
						<td>${eachuser.teaage}</td>
						<td>${eachuser.teatel}</td>
						<td>${eachuser.teaaddress}</td>
						<td>${eachuser.teaideftity}</td>
						<td><a
							href="<%=basePath%>ModifyTeaInfo?uid=${eachuser.teaid}&opt=4">修改</a></td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
		<!-- <div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default">修改</button>
			</div>
		</div>
		 </form>
		 -->
	</div>
</body>
</html>